package com.lanou3g.ptp.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 创建人: 武奇
 * 创建事件: 2019/8/6
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Option implements Serializable {

    private Long id;
    private String name;

    public Option(Long id, Object name) {
        this(id, String.valueOf(name));
    }

    @Data
    public static class BaseOption extends Option implements Serializable {
        private Double longitude;
        private Double latitude;
    }
}
